package cn.tedu.online.day02;

import java.util.Iterator;
import java.util.Map;

public class TreeMap {
    public static void main(String[] args) {
        Map<String,Integer> map = new java.util.TreeMap<>();
        map.put("tom",90);
        map.put("jerry",90);
        map.put("jack",90);
        map.put("rose",90);
        map.put("amy",90);
        map.put("nike",90);

        for (Map.Entry<String,Integer> entry : map.entrySet()){
            System.out.println(entry.getKey()+"="+entry.getValue());
        }

    }
}
